<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>模板首页文件</title>
<link rel="stylesheet" type="text/css" href="../static/css/reset.css">
<link rel="stylesheet" type="text/css" href="../static/css/index.css">
</head>
<body>
	<!-- 头部样式 -->
	<div id='header'>
		<div class="auto">
			<div id='nav'>
				<a href="#">首页</a>
			</div>
			<div id='nav'>
				<a href="/toaddPost">发布</a>
			</div>
			<div id='nav'>
				<a href="/toPostList?userId=${userId }">myNews</a>
			</div>  
				
			<div class="serarch">
				<form action="/selectBlogList">
					<input class="keyword" type="text" name="keyword"
						placeholder="搜索其实很简单"> <input class="submit" type="submit"
						name="submit" value="">
				</form>
			</div>
			
		</div>
	</div>
	<!-- 头部样式结束 -->
	<div align="center">
		<c:forEach items="${typeList }" var="t">
			<a href="/findPostByType?type=${t.type }">${t.type }</a> &nbsp;&nbsp;
		</c:forEach>
	
	</div>




	<!-- 主体部分 -->
	<div id='main'>
		<div class="hot">
			<div class="title">今日要闻</div>
			<div class="newlist">
				<ul>
					<c:forEach items="${postList }" var="p">
						<li>
						<a href="/tobloglist?id=${p.id }">[${p.type }]</a> 
						<a href="/tobloglist?id=${p.id }">${p.title }</a>
						</li>
					</c:forEach>
				</ul>
			</div>
		</div>

		<div class="box">
			<div class="title">热点精选</div>
			<div class="content">
				<ul>
				<c:forEach items="${sendPost }" var="s">
						<li>
						<a href="/tobloglist?id=${s.id }">[${s.type }]</a> 
						<a href="/tobloglist?id=${s.id }">${s.title }</a>
						</li>
				</c:forEach>
				<ul>
			</div>
		</div>

		<div class="box">
			<div class="title">体育</div>
			<div class="content">
				<div class='list'>暂无内容</div>
			</div>
		</div>

		<div class="box">
			<div class="title">疫情</div>
			<div class="content">
				<div class='childbox new'>
					<h2>
						<a href="https://news.qq.com/zt2020/page/feiyan.htm#/?nojump=1">全国</a> 
					</h2>
				</div>

				<div class='childbox old'>
					<h2>
						<a href="https://news.qq.com/zt2020/page/feiyan.htm#/global?nojump=1">海外疫情</a>
					</h2>
				</div>

				<div class='childbox lock'>
					<h2>
						<a href="https://news.qq.com/zt2020/page/feiyan.htm#/newsList?nojump=1">最新进展</a>
					</h2>
				</div>


			</div>

		</div>

	</div>
	<!-- 主体部分结束  -->

	<div id="footer">
		
		<div class="copyright">Powered by </div>
	</div>

</body>
</html>